#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"

void test1()
{
	SListNode* phead = NULL;
	SListPushBack(&phead, 1);
	SListPushBack(&phead, 2);
	SListPushBack(&phead, 3);
	SListPushBack(&phead, 4);
	SListPushFront(&phead, 5);
	SListPushFront(&phead, 6);
	SListPushFront(&phead, 7);
	SListPushFront(&phead, 8);
	SListPopBack(&phead);
	SListPopFront(&phead);
	SListPrint(phead);
	SListNode* pos = SListFind(phead, 5);
	printf("%d\n", pos->data);
	SListErase(&phead, pos);
	SListPrint(phead);
	SListInsert(&phead, phead, 9);
	SListPrint(phead);
	SLTDestroy(&phead);
}

int main()
{
	test1();
	return 0;
}